Install NS-2 in Fedora OS within a 5 Minutes.
Step 1: Install Fedora Operating System.
Ns-allinone package has been installed successfully. Here are the installation places: tcl8.5.10:/root/nn/ns-allinone-2.35/{bin,include,lib} tk8.5.10: /root/nn/ns-allinone-2.35/{bin,include,lib} otcl: /root/nn/ns-allinone-2.35/otcl-1.14 tclcl: /root/nn/ns-allinone-2.35/tclcl-1.20 ns: /root/nn/ns-allinone-2.35/ns-2.35/ns nam: /root/nn/ns-allinone-2.35/nam-1.15/nam xgraph: /root/nn/ns-allinone-2.35/xgraph-12.2 gt-itm: /root/nn/ns-allinone-2.35/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns --------------------------------------------------------------------- Please put /root/nn/ns-allinone-2.35/bin:/root/nn/ns-allinone-2.35/tcl8.5.10/unix:/root/nn/ns-allinone-2.35/tk8.5.10/unix into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph. IMPORTANT NOTICES: (1) You MUST put /root/nn/ns-allinone-2.35/otcl-1.14, /root/nn/ns-allinone-2.35/lib, into your LD_LIBRARY_PATH environment variable. If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH. If you are using csh, you can set it like: setenv LD_LIBRARY_PATH If you are using sh, you can set it like: export LD_LIBRARY_PATH= (2) You MUST put /root/nn/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental variable. Otherwise ns/nam will complain during startup. After these steps, you can now run the ns validation suite with For trouble shooting, please first read ns problems page http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive for related posts. # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin:/root/ns-allinone-2.35/bin:/root/ns-allinone-2.35/tcl8.5.10/unix:/root/ns-allinone-2.35/tk8.5.10/unix LD_LIBRARY_PATH=/root/ns-allinone-2.35/otcl-1.14:/root/ns-allinone-2.35/lib TCL_LIBRARY=/root/ns-allinone-2.35/tcl8.5.10/library export PATH unset USERNAME # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi PATH=$PATH:$HOME/bin:/root/ns-allinone-2.35/bin Step 11:Save that two file and close terminals and all file, folder. Reopen a terminal and write the ns command. If % sign display as responds. This means ns-2 successfully install on machine. Document By: Naitik V. Patel (M.Tech Computer Engineering) |